import { http } from "/@/utils/http";


export type DataItem = {
  label: string
  value: any
  extras: any
}
export type DataSource = {
  code: string
  name: string
  dataItems: DataItem[]
}
export const getDataByCodeApi = (code: string) => {
  return http.request<DataSource>("get", "/api/data/" + code);
};
